let isLoaing = true;

function showLoading(title){
  wx.showLoading({
    title: title,
  });
  this.isLoaing = true;
}

function hideLoading(){
  if(this.isLoaing){
    wx.hideLoading();
    this.isLoaing = false;
  }
}

module.exports={
  showLoading:showLoading,
  hideLoading:hideLoading
}